package ch06.test1;

import lombok.Data;

@Data
public class User {
    private String talk;

    private String talk1;

    public User() {

    }

    //打印方法
    public void print(){
        System.out.println("路飞:"+this.getTalk());
        System.out.println("路飞:"+this.getTalk1());
    }


    public User(String talk, String talk1) {
        this.talk = talk;
        this.talk1 = talk1;
    }


    public String getTalk() {
        return talk;
    }

    public void setTalk(String talk) {
        this.talk = talk;
    }

    public String getTalk1() {
        return talk1;
    }

    public void setTalk1(String talk1) {
        this.talk1 = talk1;
    }

}
